Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-45494: Add fastapi-safir-uws starter #3573

Merged
merged 1 commit into from
Aug 2, 2024
Merged

DM-45494: Add fastapi-safir-uws starter #3573

merged 1 commit into from
Aug 2, 2024

Conversation

rra
Copy link
Member

@rra rra commented Jul 30, 2024

Add a starter for vo-cutouts-style FastAPI Safir apps that use UWS. Update the code underlying phalanx application create so that it will substitute <CHARTENVPREFIX> in every template, not just configmap.yaml.

@rra rra requested a review from jonathansick July 30, 2024 21:45
@rra
Copy link
Member Author

rra commented Jul 30, 2024

This depends on lsst-sqre/safir#281 and lsst/templates#260.

Copy link
Member

@jonathansick jonathansick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

cpu: "5m"
memory: "7Mi"

cutoutWorker:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this should be generic, like "worker" or "pipelinesWorker" ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, good catch. I grepped for cutouts and not cutout. Found and fixed all of these, I think.

enabled: true

# -- Amount of persistent storage to request
size: "100Mi"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it's better to error on the side of being a bit larger since resizing PVCs is a pain. Up to you, though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to say that the amount of data stored should be quite small since the largest thing stored here in this pattern is the arguments to the backend, but the vo-cutouts data is about 50MiB, so maybe it will be larger than I expect? Although that's also very surprising to me; that's way more data than I was expecting. I'll dig into this a bit.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't task outputs also stored here, including exception traces?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outputs are not, only a URL. Exception traces are, but only for a day.

It looks like Redis is not periodically cleaning up the appendonly database for some reason. I may be missing some command-line flags in our Redis chart. When I manually ran BGREWRITEAOF, the size of the vo-cutouts Redis database went down to about 1KB.

@rra rra force-pushed the tickets/DM-45494 branch from 07314c9 to 08d8f07 Compare July 30, 2024 22:39
Add a starter for vo-cutouts-style FastAPI Safir apps that use UWS.
Update the code underlying phalanx application create so that it will
substitute <CHARTENVPREFIX> in every template, not just
configmap.yaml.
@rra rra force-pushed the tickets/DM-45494 branch from 08d8f07 to bb4962b Compare August 2, 2024 20:06
@rra rra enabled auto-merge August 2, 2024 20:06
@rra rra added this pull request to the merge queue Aug 2, 2024
Merged via the queue into main with commit 35bcaa9 Aug 2, 2024
6 checks passed
@rra rra deleted the tickets/DM-45494 branch August 2, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants